#ifndef SEGWAY_HPP
#define SEGWAY_HPP

#include "Common.hpp"
#include "Object.hpp"
#include "UserInterface.hpp"
#include "Player.hpp"

class Segway : public Object
{
public:
  Segway(Object * parent = 0,
         const glm::mat4 & modelMatrix = glm::mat4(1.0f));
  //virtual ~Segway();
  
  //virtual void draw(glm::mat4 modelMatrix); 
  
  virtual void update();
  
  vec3 m_pos;
  float m_lspin;
  float m_rspin;
  float m_rot;
  float m_hspeed;
  float m_vspeed;
  
  bool m_mounted;
  bool m_grounded;
  
private:
  

  
  Object * m_body;
  Object * m_leftWheel;
  Object * m_rightWheel;
  Player * m_player;

};

#endif // SEGWAY_HPP
